<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>
<body>
  <div id="app">
    <input type="text" v-focus="100">
   
  </div>
  <script>
    Vue.directive("focus",{
      inserted(el,binding){
        console.log(el);
        el.focus();
        console.log(binding);
      }
    })
    let vm = new Vue({
      el:"#app",

    })
  </script>
</body>
</html>